﻿@using Abp.Web.Mvc.Extensions
@using Akso.Authorization
@using Akso.Web.Navigation
@model Akso.Web.Areas.BasicDataModule.Models.CodeGroups.CodeGroupsViewModel
@{
    ViewBag.CurrentPageName = PageNames.App.Business.CodeSettings;
}

@section Scripts
{
    @Html.IncludeScript("~/Areas/BasicDataModule/Views/Codes/_CreateOrEditModal.js")
    @Html.IncludeScript("~/Areas/BasicDataModule/Views/CodeGroups/_CreateOrEditModal.js")
    @Html.IncludeScript("~/Areas/BasicDataModule/Views/CodeGroups/Index.js")

}
<div class="row margin-bottom-5">
    <div class="col-xs-12">
        <div class="page-head">
            <div class="page-title">
                <h1>
                    <span>@L("Pages_BasicDataModule_Codes_Head")</span> <small>@L("Pages_BasicDataModule_Codes_HeadInfo")</small>
                </h1>
            </div>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-lg-6">
        <div class="portlet light">
            <div class="portlet-title">
                <div class="caption">
                    <span class="caption-subject bold uppercase">
                        @L("Pages_BasicDataModule_CodeGroups_List")
                    </span>
                </div>
                <div class="actions">
                    @if (IsGranted(AppPermissions.Pages_BasicDataModule_CodeGroups_Create))
                    {
                        <a id="AddCodeGroupButton" class="btn btn-circle btn-default">
                            <i class="fa fa-plus"></i> @L("Pages_BasicDataModule_CodeGroups_Create")
                        </a>
                    }
                </div>
            </div>
            <div class="portlet-body">
                <!--显示数据的网格区域-->
                <div id="CodeGroupDataTable"></div>
                @*<div id="OrganizationUnitEditTree"></div>
                <div id="OrganizationUnitTreeEmptyInfo" ng-if="!vm.organizationTree.unitCount" class="text-muted">
                    @L("Pages_BasicDataModule_NoCodeGroupDefinedYet")
                </div>*@
            </div>
        </div>
    </div>
    <div class="col-lg-6">
        <div class="portlet light">
            <div class="portlet-title">
                <div class="caption">
                    <span class="caption-subject bold uppercase">
                        @L("Pages_BasicDataModule_Codes_List")
                        <span id="SelectedCodeGroupTitle"></span>
                        <span id="SelectedCodeGroupID"></span>
                    </span>
                </div>
                <div class="actions">
                    @if (IsGranted(AppPermissions.Pages_BasicDataModule_Codes_Create))
                    {
                        <a id="AddCodeButton" class="btn btn-circle btn-default">
                            <i class="fa fa-plus"></i> @L("Pages_BasicDataModule_Codes_Create")
                        </a>
                    }
                </div>
            </div>
            <div class="portlet-body">
                <div id="CodeDataTable"></div>
                <div id="CodeListEmptyInfo" class="text-muted">
                    @L("Pages_BasicDataModule_Codes_SelectCodeGroupToSeeCodes")
                </div>
            </div>
        </div>
    </div>
</div>
